package com.distributeredis.redis_springboot.springbooteasyexcel.vo;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.format.DateTimeFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class GoodsExcelDTO {
 
    @ExcelProperty(index = 0)
    private Integer id;
 
    @ExcelProperty(index = 1)
    private String name;
 
    @ExcelProperty(index = 2)
    private String info;
 
    @ExcelProperty(index = 3)
    @DateTimeFormat(value = "yyyy-MM-dd HH:mm:ss")
    private String buyTime;
}